package online.shenme.day05;

import java.util.Arrays;

public class IntegerTest {
    public static void main(String[] args) {
        String test = "97 28 16 0 10";
        String[] s = test.split(" ");
        int[] i=new int[s.length];
        for (int j = 0; j < i.length; j++) {
            i[j]=Integer.parseInt(s[j]);
            System.out.println(i[j]);
        }
        Arrays.sort(i);

        for (int j = 0; j < i.length; j++) {
            System.out.print(i[j]+"\t");
        }
        System.out.println();
        System.out.println(Arrays.binarySearch(i,10));
    }
}
